import type {Route}          from '../index.type'
import Layout                from '@/layout/index.vue'
import {createNameComponent} from '../createNode'

const route: Route[] = [
    {
        path     : '/taskManagement',
        component: Layout,
        redirect : '/taskManagement/imageOverlays',
        meta     : {title: '任务管理', icon: 'sfont system-home'},
        alwayShow: true,
        children : [
            {
                path     : 'list',
                component: createNameComponent(() => import('@/views/main/taskManagement/imageOverlays/list/index.vue')),
                meta     : {title: '任务列表', icon: 'sfont system-home'}
            },
            {
                path     : 'imageOverlays',
                component: createNameComponent(() => import('@/views/main/taskManagement/imageOverlays/overlays/index.vue')),
                meta     : {title: '图片标注', icon: 'sfont system-home'}
            }
        ]
    }
]

export default route
